import { CommonColumnEntity } from '../../../../util/entity/common.column.entity';
import { Allow, IsNumber, IsString } from 'class-validator';

export class CreateWeaponDto extends CommonColumnEntity {
  @IsString()
  name: string;
  @IsNumber()
  level: number; //武器初始强化等级
  @IsNumber()
  weaponType: number; // 武器部位1-武器 2-耳环 3-其他
  @IsNumber()
  price: number;
  @IsNumber()
  priceType: number;
  @Allow()
  imageUrl: string;
}
